#ifndef FPLAYER_ICONVERT_H
#define FPLAYER_ICONVERT_H

#include <jni.h>

/**
 * Java对象与C++对象之间的转换
 */
template<class T>
class IConvert {
public:
  IConvert() = default;

  virtual ~IConvert() = default;

  virtual T *java2Object(jobject obj) = 0;

  virtual jobject object2Java(T *obj) = 0;
};

#endif //FPLAYER_ICONVERT_H
